package com.jiermt.M0529;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.util.Scanner;

public class StringDemo1 {
    public static void main(String[] args) {
    /*    String s1 = "hello";
        System.out.println(s1);
        System.out.println(s1.length());
        System.out.println("--------------");

        String s2 = new String();
        System.out.println(s2);//空字符串

        char  ch[] = {'a', 'b', 'c'};
        String s3 = new String(ch);
        System.out.println(s3);
      String s4 = new  String(ch, 1, 2);
        System.out.println(s4);*/
       /* boolean  b = true;
        do {
            String s5 = "admin";
            System.out.println("请输入账号");
            Scanner  sc = new Scanner(System.in);//创建一个扫描器
            String s6 = sc.next(); //获取用户输入
            if (s5.equals(s6)) {
                System.out.println("登录成功");
                b = false;
            }
            else {
                System.out.println("登录失败");

            }
        } while (b);*/
        System.out.println("请输入手机号");
Scanner  sc = new Scanner(System.in);
String s7 = sc.next();
        String s = s7.substring(0, 3) + "****" + s7.substring(7);
        System.out.println(s);






    }


}
